package com.dhcc.bpm.modules.alarm.service.impl;

import com.dhcc.bpm.modules.alarm.entity.AlarmNotice;
import com.dhcc.bpm.modules.alarm.vo.AlarmNoticeVO;
import com.dhcc.bpm.modules.alarm.mapper.AlarmNoticeMapper;
import com.dhcc.bpm.modules.alarm.service.IAlarmNoticeService;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * 告警通知表 服务实现类
 *
 * @author ccab
 * @since 2020-07-06
 */
@Service
public class AlarmNoticeServiceImpl extends BaseServiceImpl<AlarmNoticeMapper, AlarmNotice> implements IAlarmNoticeService {

	@Override
	public IPage<AlarmNoticeVO> selectAlarmNoticePage(IPage<AlarmNoticeVO> page, AlarmNoticeVO alarmNotice) {
		return page.setRecords(baseMapper.selectAlarmNoticePage(page, alarmNotice));
	}

	@Override
	public Integer getAlarmNotice(AlarmNoticeVO alarmNotice) {
		return baseMapper.getAlarmNotice(alarmNotice);
	}

}
